# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=libwhich
pkgver=1.1.0
pkgrel=0
pkgdesc="Like which(1), but for dynamic libraries"
url="https://github.com/vtjnash/libwhich"
arch="all"
license="MIT"
checkdepends="sed zlib-dev"
source="https://github.com/vtjnash/libwhich/archive/v$pkgver/libwhich-$pkgver.tar.gz
	make-install.patch
	"

build() {
	make
}

check() {
	make check
}

package() {
	make install DESTDIR="$pkgdir"
}

sha512sums="
80beae0860d34d441d940b96114f9532f145a5e4d81bf810d336fdde9aec35d4bb8525e11c1bcb2063c282f2c5095aa62d951f913aca2f76812d7a20899d3d95  libwhich-1.1.0.tar.gz
273bfcdc16a8e717950d58616af875f77326ed42068b02121a7e93baaf2d0702366d5029687659231308dfb8e1aa5727deea55acb2584b6fa8014f19a93a4879  make-install.patch
"
